package com.osc.exam.base;

/**
 * base response entity.
 *
 * @author:
 * @since: 2020/6/16
 */
public class BaseResponse<T> {

    private Integer code;
    private String message;

    public static <T> BaseResponse<T> result(Integer code, String message) {
        return new BaseResponse<T>(code, message);
    }


    public BaseResponse() {
    }

    public BaseResponse(Integer code) {
        this.code = code;
    }

    public BaseResponse(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}